
LVGL_SRC_DIR=$(LVGL_DIR)/$(LVGL_DIR_NAME)/src

LVGL_INCLUDE +=-I$(LVGL_DIR)/$(LVGL_DIR_NAME) 

LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/core/*.c)
LVGL_INCLUDE +=-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/core

LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/draw/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/draw

LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/extra/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/extra

LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/extra/layouts/flex/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/extra/layouts/flex

LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/extra/layouts/grid/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/extra/layouts/grid
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/extra/layouts

LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/extra/themes
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/extra/themes/basic
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/extra/themes/default
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/extra/themes/mono

LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/extra/themes/basic/*.c)
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/extra/themes/default/*.c)
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/extra/themes/mono/*.c)

LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/extra/widgets
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/extra/widgets/animimg/*.c)
LVGL_INCLUDE+=-I$(LVGL_SRC_DIR)/extra/widgets/animimg

LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/extra/widgets/calendar/*.c)
LVGL_INCLUDE+=-I$(LVGL_SRC_DIR)/extra/widgets/calendar

LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/extra/widgets/chart/*.c)
LVGL_INCLUDE+=-I$(LVGL_SRC_DIR)/extra/widgets/chart

LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/extra/widgets/colorwheel/*.c)
LVGL_INCLUDE+=-I$(LVGL_SRC_DIR)/extra/widgets/colorwheel


LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/extra/widgets/imgbtn/*.c)
LVGL_INCLUDE+=-I$(LVGL_SRC_DIR)/extra/widgets/imgbtn

LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/extra/widgets/keyboard/*.c)
LVGL_INCLUDE+=-I$(LVGL_SRC_DIR)/extra/widgets/keyboard

LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/extra/widgets/led/*.c)
LVGL_INCLUDE+=-I$(LVGL_SRC_DIR)/extra/widgets/led

LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/extra/widgets/list/*.c)
LVGL_INCLUDE+=-I$(LVGL_SRC_DIR)/extra/widgets/list

LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/extra/widgets/meter/*.c)
LVGL_INCLUDE+=-I$(LVGL_SRC_DIR)/extra/widgets/meter

LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/extra/widgets/msgbox/*.c)
LVGL_INCLUDE+=-I$(LVGL_SRC_DIR)/extra/widgets/msgbox

LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/extra/widgets/span/*.c)
LVGL_INCLUDE+=-I$(LVGL_SRC_DIR)/extra/widgets/span

LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/extra/widgets/spinbox/*.c)
LVGL_INCLUDE+=-I$(LVGL_SRC_DIR)/extra/widgets/spinbox


LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/extra/widgets/spinner/*.c)
LVGL_INCLUDE+=-I$(LVGL_SRC_DIR)/extra/widgets/spinner

LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/extra/widgets/tabview/*.c)
LVGL_INCLUDE+=-I$(LVGL_SRC_DIR)/extra/widgets/tabview

LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/extra/widgets/tileview/*.c)
LVGL_INCLUDE+=-I$(LVGL_SRC_DIR)/extra/widgets/tileview


LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/extra/widgets/win/*.c)
LVGL_INCLUDE+=-I$(LVGL_SRC_DIR)/extra/widgets/win

LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/extra/widgets/win/*.c)
LVGL_INCLUDE+=-I$(LVGL_SRC_DIR)/extra/widgets/win



LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/font/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/font

LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/hal/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/hal

LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/misc/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/misc

LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/widgets/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/widgets

.PHONY:testlvgl

testlvgl:
#	@echo $(LVGL_SRC_DIR)
#	@echo $(LVGL_SRC_C)
	@echo $(LVGL_INCLUDE)